﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Quotation
{
   public sealed  class ETFMarket:StrictFlagBase<char,ETFMarket>
    {
       private ETFMarket(char value) : base(value) { }

       public static readonly ETFMarket Shanghai = new ETFMarket('0');

       public static readonly ETFMarket Shenzhen = new ETFMarket('1');


       /// <summary>
       /// 隐式类型转换
       /// </summary>
       /// <param name="value"></param>
       /// <returns></returns>
       public static implicit operator ETFMarket(char value)
       {
           ETFMarket rtn;
           ETFMarket.TryConvert(value, out rtn);
           return rtn;
       }
    }
}
